SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 47215: Using SAS® date formats as labels in a multilabel format definition generates incorrectly formatted output from PROC MEANS and PROC TABULATE

DetailsAboutRate It

Formatting a variable with a multilabel format that uses SAS date formats as labels generates incorrect date values in your PROC MEANS and PROC TABULATE output. An example of creating this type of format is shown below.

proc format;
   value dt_test (multilabel)
        '01may2012'd - '30sep2012'd = [monyy5.]
        '01jun2012'd - '31jul2012'd = [yymmdds10.]
   ;
run;

An example of the incorrect output is shown below.

                N
report_dt     Obs      N
------------------------
1960/01/01    143    143

DEC59          88     88

JAN60         283    283

------------------------


----------------------------------------
|              report_dt               |
|--------------------------------------|
| 1960/01/01 | DEC59      | JAN60      |
|------------+------------+------------|
|     N      |     N      |     N      |
|------------+------------+------------|
|      143.00|       88.00|      283.00|
----------------------------------------

There is currently no circumvention for this problem.

Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemN/ATru64 UNIX9.1 TS1M3 SP49.4 TS1M0
Solaris for x649.1 TS1M3 SP49.4 TS1M0
Solaris9.1 TS1M3 SP49.4 TS1M0
OpenVMS Alpha9.1 TS1M3 SP49.4 TS1M0
Linux on Itanium9.1 TS1M3 SP49.4 TS1M0
Linux for x649.1 TS1M3 SP49.4 TS1M0
Linux9.1 TS1M3 SP49.4 TS1M0
HP-UX IPF9.1 TS1M3 SP49.4 TS1M0
HP-UX9.1 TS1M3 SP49.4 TS1M0
AIX9.1 TS1M3 SP49.4 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.4 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.4 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.4 TS1M0
Windows Vista for x649.1 TS1M3 SP49.4 TS1M0
Windows Vista9.1 TS1M3 SP49.4 TS1M0
Microsoft Windows XP Professional9.1 TS1M3 SP49.4 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.4 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.4 TS1M0
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.4 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.4 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.4 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.4 TS1M0
Microsoft® Windows® for x649.1 TS1M3 SP49.4 TS1M0
z/OS9.1 TS1M3 SP49.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.